Skip to content

fix:disable save button when the project is playing (#4239)#4241

Closed
BeNikk wants to merge 2 commits intosugarlabs:masterfrom
BeNikk:disable-save-during-play
Closed

fix:disable save button when the project is playing (#4239)#4241
BeNikk wants to merge 2 commits intosugarlabs:masterfrom
BeNikk:disable-save-during-play

Conversation

@BeNikk
Copy link
Contributor

@BeNikk BeNikk commented Jan 7, 2025

Description

This PR addresses issue (#4239) by disabling the save and record buttons while a project is playing to prevent buggy behavior.

Changes made

  • Added functionality to disable save and record buttons when play is clicked
  • Re-enable save buttons and record buttons when playback stops

Screenshot

Screencast.from.08-01-25.02.33.14.AM.IST.webm

@BeNikk BeNikk marked this pull request as draft January 7, 2025 17:03
@BeNikk BeNikk marked this pull request as ready for review January 7, 2025 21:09
@BeNikk
Copy link
Contributor Author

BeNikk commented Jan 7, 2025

@pikurasa @walterbender I think disabling buttons during play can be achieved like this as discussed in #4239

@walterbender
Copy link
Member

The save project button was not disabled (at least for me on FireFox/Fedora). How did you test?

@BeNikk
Copy link
Contributor Author

BeNikk commented Jan 8, 2025

it looks like the buttons are getting re-enabled after 2 seconds because of a setTImeout function that debounces the play button, i will have a look,

@BeNikk BeNikk marked this pull request as draft January 8, 2025 20:02
@BeNikk BeNikk closed this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants